<ul class="nav nav-pills" style="margin-top: 2px;">
  <li class="dropdown">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
        <span class="menuLoguear">Ten&eacute;s una cuenta?&nbsp;</span>
        <b class="caret"></b>
      </a>
    <ul class="dropdown-menu">
    	<form action="/VALC/j_spring_security_check" method="POST" id="loginForm" name="loginForm" class="form-horizontal" autocomplete="off">
    	  <g:hiddenField name="controllerActual" id="controllerActual" value="${params.controller}"/>
    	  <g:hiddenField name="actionActual" id="actionActual" value="${params.action}"/>
		  <div>
		    <div class="controls">
		      <input type="text" name="j_username" id="username" placeholder="Usuario o email">
		    </div>
		  </div>
		  <div class="separator"</div>
		  <div class="separator"</div>
		  <div class="separator"</div>
		  <div>
		    <div class="controls">
		      <input type="password" name="j_password" maxLength="20" id="password" placeholder="Contraseña" class="span2">
		    </div>
		  </div>
		  <div class="separator"></div>
		  <div>
		    <div class="controls">
		      <label class="checkbox" style="float: left; font-size: 12px;">
					<input type="checkbox" class="chk" name="_spring_security_remember_me" id="remember_me">Recordame
		      </label>
		      <button style="float: right; margin-left:20px; align: right;" id="entrarLogin" name="entrarLogin" type="submit" class="btn">Entrar</button>
		    </div>
		  </div>
		  <div class="separator"></div>
		  <div>
		  	<button class="btn btn-small btn-link" type="button">Olvidaste tu contrase&ntilde;a?</button>
		  </div>
		  <div class="separatorMediano"></div>
		    <div align="center">
				<facebookAuth:connect permissions="email,user_about_me" />
			</div>
		</form>
<%--		</g:form>--%>
    </ul>
  </li>
</ul>
<a role="button" id="crearCuenta" class="btn" onclick="crearCuenta();">Crear cuenta</a>